package com.sls.web.manager.action;

import org.apache.log4j.Logger;

import com.opensymphony.xwork2.ActionSupport;
import com.sls.web.manager.common.UserInfoThreadLocal;
import com.sls.web.manager.pojo.UserInfoVO;

public class SuperAction extends ActionSupport {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1837444637369790087L;
	protected static Logger log = Logger.getLogger(SuperAction.class);
	public static final String LIST = "list";
	protected String redirectionUrl;
	protected boolean flag = true;
	protected String message;

	/**
	 * 获取当前登录操作者的信息
	 * 
	 * @return
	 */
	protected final UserInfoVO getCurrentOperator() {
		log.debug("获取当前用户");
		return UserInfoThreadLocal.get();
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getRedirectionUrl() {
		return redirectionUrl;
	}

	public void setRedirectionUrl(String redirectionUrl) {
		this.redirectionUrl = redirectionUrl;
	}

	public boolean isFlag() {
		return flag;
	}

	public void setFlag(boolean flag) {
		this.flag = flag;
	}

}
